VB .NET XML Web Services1. You have enabled tracing in the ASP.NET application. What HTTP Handler is used to request trace details from the ASP.NET application? A. trace.asp B. trace.axd C. trace.trc D. trace.log
2. You have successfully deployed your Web application. You want to monitor performance counters on the Web application to watch for potential problems that may crop up over time. What tools would you use to accomplish this? A. WMI B. SQL Profiler C. Application Logger D. DCOM
3. You need to set the CurrentCulture property explicitly in the code to support the Spanish language in the United States. What code line do you need to add? A. Thread.CurrentThread.CurrentCulture = new CultureInfo("en-ES") B. Thread.CurrentThread. CultureInfo = new CurrentCulture("es-US") C. Thread.CurrentThread.CurrentCulture = new CultureInfo("es-US") D. Thread.CurrentThread. CultureInfo = new CurrentCulture("en-ES")
4. You need to interactively debug your XML Web Service, called InsuranceQuoter, in the Visual Studio .NET the Interactive Development Environment. You have opened the Web Services Project and need to isolate an error within the GetQuote method in the InsuranceQuoter web service. How will you isolate this error? A. Set a breakpoint at the beginning of the GetQuote method and press "F5" to invoke a test page to step through the code B. Set an ASP trace on the InsuranceQuoter web service and call the GetQuote method from a client application C. Enable SOAP Extensions D. Debug="true" and restart the server
5. You are a developer and are tasked with securing the XML Web Services deployed on an IIS Server as the primary host. You need to allow the client credential to be impersonated on the primary host as long as it's logged into the client as webuser on the remoteserver domain. What line needs to be added to the identity subsection in the web.config file to allow this type of security? A. <identity impersonate="true" name="webuser" password="password"/> B. <identity impersonate="false"/> C. <identity impersonate="true"/> D. <identity impersonate="true" name="remoteserver\webuser password="password"/>
6. You have deployed a Web application on the local intranet. Only employees in the accounting domain are authorized to use this application. What two line should you add to the authorization subcategory in the web.config file? A. <allow users="accounting\*"/> B. <deny users="*"/> C. <allow users="*"/> D. <deny users="accounting\*"/> E. <revoke users="accounting\*"/>
7. You have deployed a Web Application and need to use a centralized authentication service through ASP.NET for the XML Web Services on an IIS Server. Which ASP.NET authentication provider should you use? A. Forms Authentication B. Passport Authentication C. Kerberos Authentication D. Integrated Windows Authentication
8. You have created a Windows Service and have installed it on a server called StandBy and had the service startup with a LocalService account called StandBy\LocalServiceAcct account. You will be attaching this server to the RWLifeInsurance domain and need to change the security context for the service startup to the NetworkService account called RWLifeInsurance\Win2Kservice. Where do you programmatically change the property for the security context of this Windows Service? A. ServiceProcessInstaller.Account property B. ServiceProcessInstaller.Security property C. System.ServiceProcess.Account property D. System.ServiceProcess.Security property
9. At Ravenwood Life Insurance all of the operating systems on the client work stations have been upgraded to Windows XP Professional. Several applications deployed on these work stations need to share different versions of COM objects that include the same DLL name. What type of assembly needs to be installed on the client workstations to avoid DLL conflicts? A. Isolated Assembly B. Component Assembly C. Side-by-side Assembly D. Private Assembly
10. You have fixed a bug and want to update the version number for the Component Assembly. Where is the .NET Component Assembly version stored? A. Web.config B. Machine.config C. Manifest D. Windows Registry
11. You have been told by the Director of Marketing that they want to make the RavenwoodLife Insurance Rate Quotes available to insurance agents that may want to produce life insurance quotes on their web sites for Ravenwood Life Insurance. A week earlier, you developed and deployed an XML Web Service called RavenwoodLifeRateQuoter that produces life insurance rate quotes only for RavenwoodLife Insurance's web site. What do you need to do in order for others to find and use RavenwoodLifeRateQuoter on their web sites? A. Follow the guidelines of the Universal Description, Discovery and Integration specification B. Follow the guidelines of the Web Services Referral Protocol specification C. Follow the guidelines of the Common Object Request Broker Architecture specification D. Follow the guidelines of the Simple Object Access Protocol specification
12. You are a developer that was just hired at RavenwoodLife Insurance. You have been tasked with enabling static discovery for the XML Web Services that are used in the Web Application deployed by a former developer. What type of file will you need to create? A. .config B. .wsdl C. .uddi D. .disco
13. When publishing an XML Web Service to an IIS Web server, what items are always deployed? (Choose all that apply) A. .disco file B. .asmx file C. Web application directory under wwwroot D. web.config file E. .uddi file
14. You need to manually register a component assembly from a command line that you developed for a server application. Since this is the first time that you have registered this component on the server, what step must you take to ensure that the component assembly is correctly registered? A. Register the component with regsrv32.exe B. Create a WSDL file C. Add the assembly to the Global Assembly Cache with the gacutil.exe D. Register the component with installutil.exe
15. You are done developing and testing your Windows application that uses Serviced Components and are ready to deploy it to all users throughout the company. You want the new application to be installed the next time the users log in to their work stations. How should you deploy this application? A. Create a custom executable (.exe) and place it in the Active Directory Group Policies for electronic distribution to all users. B. Create a Windows Installer application (.msi) and email it to the users with instructions for installation. C. Create a custom executable (.exe) and email it to the users with instructions for installation. D. Create a Windows Installer application (.msi) and place it in the Active Directory Group Policies for electronic distribution to all users.
16. You are planning the deployment of the Serviced Component that you have developed. What are the four registration and configuration requirements for Serviced Components that are hosted and consumed by COM+ applications that are added programmatically? A. Must be a strong-named assembly. B. Must be registered in the Windows registry. C. Must register and install all type library definitions by the COM+ host application. D. Must be not be registered in the Windows registry. E. Must be written in VB .NET or C# .NET. F. Must be configured in the COM+ catalog. G. Must be configured in the COM+ repository.
17. You have created an XML Web Service that is called by client applications. The client consumes the XML Web Service. There are instances where the client application is not receiving the data back from the server hosting the XML Web Service. How should you debug this problem? A. Enabling SOAP Extensions and capturing the data stream as it's being passed to and from the client and server B. Creating a custom method in the web service to check a custom token being sent by the server C. Running the XML Web Service in the IDE D. Enabling SOAP Tracing and capture the data stream as its being passed to and from the client and server
18. You want to debug the ASP.NET Web application that consumes an XML Web Service that you developed. In order to set the debug mode you need to add what line to the web.config file? A. Debug="true" B. debug="true" and restart the server C. debug="true" D. Debug="true" and restart the server
19. You have developed an XML Web Service that uses SQL Server 2000 to store and retrieve its data in a database called RWLifeIns. You need to debug the access to the database and the calls being passed to and from it. You also need to log the test results to the database. What method should be used? B. Enable SOAP Extensions C. Place the LogStreamFile="XML_WS_Results.log" property in the Web.config file D. Use SQL Debugger and log the test result to a table called XML_WS_Results in the RWLifeIns database A. Use SQL Profiler and log the test result to a table called XML_WS_Results in the RWLifeIns database
20. You have created an empty XML Document and need to load it from string data. What load method should be used? A. LoadXML B. XMLReader C. Load D. LoadString
21. You have just created a Windows Service in Visual Studio .NET called myWindowsService and want to test it. How will you test this new Windows Service? A. Install it with the following command line utility: installutil myWindowsService.exe B. Press 'F5' in the Development Environment to run it C. Press 'Shift-F5' in the Development Environment to run it D. Install it with the following command: installutil /u myWindowsService.exe
22. You are creating a Windows Service called AppFileWatch to check if a new XML file is placed into a watch directory that will be processing insurance applications for your company. You need to add an event to the event system log whenever this Windows Service is stopped. Which code segment should you add? A. Dim EventLogEntry As New EventLog ("System", "LocalServer", "AppFileWatch") Protected Overrides Sub OnStop() EventLogEntry.WriteEntry("AppFileWatch stopped") End Sub B. Dim EventLogEntry As New EventLog ("Application", "LocalServer", "AppFileWatch") Protected Overrides Sub OnStop() EventLogEntry.WriteEntry("AppFileWatch stopped") End Sub C. Dim EventLogEntry As New EventLog ("System", "LocalServer", "AppFileWatch") Protected Overrides Sub ServiceStop() EventLogEntry.WriteEntry("AppFileWatch stopped") End Sub D. Dim EventLogEntry As EventLog ("System", "LocalServer", "AppFileWatch") Protected Overrides Sub OnStop() EventLogEntry.WriteEntry("AppFileWatch Stopped") End Sub
23. You have created a Serviced Component that will be used to accept an insurance application and change its status for processing. What code segment would be used to consume the Serviced Component? A. Imports AppStatus Public Class ClntApp Shared Sub Main() Dim NewInsApp As New InsApp() InsApp.AppStatus('T') End Sub End Class B. Imports AppStatus Public Class ClntApp Shared Sub New() Dim NewInsApp As New InsApp() NewInsApp.AppStatus('T') End Sub End Class C. Imports AppStatus Public Class ClntApp Shared Sub Main() Dim NewInsApp As New InsApp() NewInsApp.AppStatus('T') End Sub End Class
24. You are creating a Serviced Component called AppStatus that will be consumed by the client application. Which .NET Framework class is required for a Serviced Component? A. System.Activator B. System.ComponentServices C. System.EnterpriseServices D. System.MarshalByRefObject
25. You are creating a Serviced Component called AppStatus that will be exposed to COM applications. Which two minimum conditions are required? A. Classes should implement interfaces explicitly B. Managed types must not be public C. Classes should implement interfaces implicitly D. Managed types must be public E. The Serviced Component must be developed in Visual Basic .NET or C#.NET
26. You have developed a Web application that include Web Forms as the user interface and database components as middle-tier objects with SQL Server 2000 as the database server. You will need to configure the database components to restrict access to the database components by unauthorized users. Which configuration should be made? (Choose all that apply) A. Set the Public Key to the public key assigned to the client computer. B. Set the SecurityAction.RequestMinimum in the Strong Name Identity Permission attribute. C. Set the SecurityAction.Deny in the Strong Name Identity Permission attribute. D. Set the Public Key to the public key assigned to the host server. E. Set the Public Key to the public key assigned to the web application's assembly.
27. You have created a serviced component that will be consumed by an application used by all employees at RavenwoodLife Insurance to support the distributed application that your team developed. You have put together a setup project that will register the serviced component in the Global Assembly Cache on all the employee computers. You want to accommodate future updates to the serviced component and ensure backwards compatibility, as well as make sure that the most recent version of the component are consumed in the distributed application. Which steps are required? A. Sign a Strong Name for the serviced component. B. Register a subscriber policy file in the Global Assembly Cache on each employee's computer. C. Register the component using Regsrv32. D. Register a publisher policy file in the Global Assembly Cache on each employee's computer. E. Increment the version of the serviced component's manifest before each update. F. Increment the serviced component assembly version before each update.
28. What graphical administration tool is used to manage components by registering and deploying them, as well as providing script automated component employment? A. Component Object Tool B. Component Services Explorer C. Component Management Services D. Component Management Tool
29. You are a developer for RavenwoodLife Insurance and have implemented a server-activated component. You need to call a .NET Remoting object. Which method is used to create a proxy to the remote object? A. Activator.GetObject B. Activator.CreateObject C. System.Runtime.Remoting.Channels.ChannelServices D. RemotingConfiguration.RegisterWellKnownServiceType
30. You are a developer for RavenwoodLife Insurance. You are using IIS to host a .NET Remoting application. In order to configure remoting clients to consume the remote service, what method must be configured in the Global.asax file? A. Session_StartUp B. Session_Start C. Application_StartUp D. Application_Start
31. You are a developer for RavenwoodLife Insurance and need to create a .NET Remoting server-activated component. One of the requirements is that the client connections need to retain state management. Which activation mode should the .NET Remoting server-activated component be deployed? A. Asynchronous B. SingleCall C. Client-activated D. Singelton
32. You have created a client-activated component for .NET Remoting. You have decided to use the default lease time as set by MarshalByRefObject.InitializeLifetimeService. How long will the object be active before the lease manager will release the object from memory? A. 30 Minutes B. 1 Minute C. 5 Seconds D. 2 Minutes
33. You are developing a managed code component that will be distributed by .NET Remoting. Performance is the most important requirement. Which combination of channel protocol and formatter should be used? A. HTTP Channel with a Binary Formatter B. TCP Channel with a SOAP Formatter C. TCP Channel with a Binary Formatter D. HTTP Channel with a SOAP Formatter
34. You have written a custom host Visual Basic .NET application, called AppListener, that will host a .NET Remoting object. The source file is named AppListener.vb and is compiled as AppListener.exe. What line of code will need to be included in the host application to access the server-activated component? B. RemotingConfiguration.Configure("AppListener.vb.config") C. RemotingConfiguration.Configure("AppListener.vb.config") D. RemotingConfiguration.Configure("Host.config") A. RemotingConfiguration.Configure("AppListener.exe.config")
35. You have created a class object called ClientInfo that stores client information from insurance applications. The data is stored in a SQL Server 2000 database. You need to make the object a remote object. What can you use to accomplish this? A. Derive the ClientInfo class object with the MarshallByRefObject B. Derive the ClientInfo class object with the TransparentProxy C. Derive the ClientInfo class object with the ChannelService D. Derive the ClientInfo class object with the RealProxy
36. You are a developer for RavenwoodLife Insurance and have been asked to rewrite the current ASP 2.0 web application to support the new .NET initiative at your company. The requirements that you have been given are that it needs to support asynchronous methods and be able to be accessed by non-Windows clients. Which type of .NET application should you develop for the rewrite? A. XML Web Service B. .NET Remoting C. Serviced Component D. Windows Service
37. You are a developer for RavenwoodLife Insurance and are creating an XML Web Service RateQuoter in Visual Studio .NET to support requests for life insurance rate quotes on the Web. You realize that you are not able to access the Session object. Which line should you include in your code: A. Inherits System.Web.Services.WebService B. Inherits System.Web.Services.WebClass C. Inherits System.Web.Services.WebSession D. Inherits System.Web.Services.WebAccess
38. You are a developer for Ravenwood Life Insurance. One of your colleagues created an XML Web Service called AppVerification and is now is gone on vacation. You are developing an application that consumes AppVerification. Your application has received an error that the AppVerification has thrown an exception. You need to write a Try/Catch block. What type of exception would be thrown by AppVerification? A. ClientActivatedException B. XMLException C. WebServiceException D. SoapException
39. You are creating an XML web service that gives life insurance quotes. The web service takes the state that the applicant lives in as an input so the quotation can return the appropriate quote. Performance is the most important requirement. How should you accomplish this? A. Set the WebMethod.BufferResponse property to True B. Set the WebMethod.BufferResponse property to False C. Set the WebMethod.EnableSession property to True D. Set the WebMethod.EnableSession property to False
40. You have developed an ASP.NET application that calls an XML Web Service and you need to encrypt and decrypt data that is passed back to the clients. You have decided to use SOAP Extensions. The SOAP Extension is configured in a configuration file. When is the GetInitializer method called? A. Only the first time the XML Web Service is consumed. B. Every time the XML Web Service is consumed. C. Only when the XML Web Service is consumed by a different client. D. Only when the client reinitializes its state.
41. You currently have an XML Web Service that is called synchronously. You need to change it so that it can be called asynchronously. What should you do? A. Wrap the XML Web Service call with Begin and End methods. B. XML Web Services can only be called synchronously. C. Wrap the XML Web Service call with Start and Stop methods. D. Set the asynchronous to True in the configuration file.
42. You have developed an XML Web Service and want to change the default XML wire format. Which class is used to control XML wire format for XML Web Services? A. System.Web.Service.Protocols.SoapHttpClientProtocol B. System.Web.Service.Protocols.XMLWireFormat C. System.Web.Service.Protocols.SoapHttpClientProxy D. System.Web.Service.Protocols.SoapHttpWebProtocol
43. You have developed an XML Web Service and will only be deploying it for use on the local intranet at Ravenwood Life Insurance. There is no concern for hacker intrusions. What security method should be deployed in your XML Web Service? A. Windows - Client Certificates B. HTTP basic authentication C. SOAP headers - Custom D. Forms
44. You need to create an XML Web Service in unmanaged code. What development environment should you develop it in? A. ATL Server and Visual C++ B. SQL Server and Transact-SQL C. MicroSoft Access and VBA D. VMS and Fortran
45. You are evaluating the use of XMLReader and its implementations to read data into the Document Object Model that you are using in your application. After studying the XMLReader functionality, which of the following does an XMLReader NOT do? A. Change attributes of the XML document. B. Read the entire XML file. C. Navigate through the attributes. D. Skip over elements.
46. You have created an instance of DataSet called dsRavenwoodLife as follows: Dim daPolicies As New SqlDataAdapter("Select * From Policies", objConnection) Dim dsRavenwoodLife As New DataSet("RavenwoodLife") daPolicies.FillSchema(dsRavenwoodLife, SchemaType.Source, "Policies") daPolicies.Fill(dsRavenwoodLife, "Policies") What line of code do you need to add to the Visual Basic.NET object to output all the data from the Policies table to an XML file? A. dsRavenwoodLife.WriteXml("c:\xmldata\ policies.xml") B. daPolicies.WriteXml("c:\xmldata\ policies.xml") C. dsRavenwoodLife.ExportXml("c:\xmldata\ policies.xml") D. daPolicies.ExportXml("c:\xmldata\ policies.xml")
47. You need to create an XSD document to validate the schema of the XML documents produced from called to a SQL Server 2000 database. Which namespace is required in the XSD document to comply with the current World Wide Web Consortium (W3C) specifications for datatypes and structures? A. http://www.w3.org/2000/XMLSchema B. http://www.w3.org/2001/XMLSchema C. http://www.w3.org/2002/XMLSchema D. http://www.w3.org/2003/XMLSchema
48. You need to output data in XML format from the Policies table in the RWLifeIns database stored in SQL Server 2000. You need the XML document to output at only the row level. Which select statement will support row level output? A. SELECT * FROM Policies FOR XML RAW B. SELECT * FROM Policies FOR XML AUTO C. SELECT * FROM Policies FOR XML EXPLICIT D. SELECT * FROM Policies FOR XML ROWLEVEL
49. You will be receiving data from several insurance providers in XML format. You will need to update the InsProviders database in SQL Server 2000 with the XML data. What method will allow you to make the updates through HTTP POST? A. Updategrams B. SQL Injection C. SQLUpdate D. XMLUpdate
50. You have an XML document as follows: Term Life 30 You need to validate this XML document. What is the preferable method of schema validation in the .NET Framework and that fully conforms to the current W3C recommended standards for XML? A. XML Schema Definition Language schema (XSD) B. XML Data Reduced schema (XDR) C. Document Type Definition (DTD) D. Extensible Style Language (XSL)
51. You developed an XML Web Service that has its data stored in a SQL Server 2000 database called RWLifeIns. You are planning on future growth of the Web application that calls the web service. After examining the sqlConnection code, you realize that the Max Pool Size is using the default. What is the default of this property? A. 50 B. 500 C. 100 D. Unlimited
52. You have written an XML Web Service that needs to retrieve information stored in a SQL Server 2000 database called Ins_Applications. You have created an object called App_Cmd by instantiating SqlCommand. You need to query a table called Received_Apps for all rows for the following three columns: app_number, app_fname and app_lname. Which line of code should you use to create the command string? A. App_Cmd.CommandText = "Select app_number, "&"app_fname, "&"app_lname From Received_Apps" B. SqlCommand.CommandText = "Select app_number, "&"app_fname, &"app_lname From Received_Apps" C. App_Cmd.CommandText = "Select * From Received_Apps" D. App_Cmd.CommandString = "Select app_number, "&"app_fname, "&"app_lname From Received_Apps"
53. You work for RavenwoodLife Insurance and need to merge two DataSets, one from the Web Application and one from the Windows Application. The DataSet object from the Web Application is called WebInsAppInfo and the DataSet object in the Windows Application is called RWLifeInsAppInfo. Both DataSets have the same schema. You need to merge WebInsAppInfo into RWLifeInsAppInfo without loosing the original data in RWLifeInsAppInfo. Which code line does is correct? A. RWLifeInsAppInfo.MergeSchema(WebInsAppInfo, True) B. RWLifeInsAppInfo.Merge(WebInsAppInfo) C. WebInsAppInfo.Merge(RWLifeInsAppInfo, True) D. RWLifeInsAppInfo.Merge(WebInsAppInfo, True)
54. You have a DataSet object called dsNewPolicies and want to copy the structure and all constraints and relations to a DataSet object called dsWebPolicies to be filled by the data collected by a Web application. What code line will accomplish this? A. Dim dsWebPolicies As DataSet dsWebPolicies = dsNewPolicies.clone() B. Dim dsWebPolicies As DataSet dsWebPolicies = dsNewPolicies.populate() C. Dim dsWebPolicies As DataSet dsWebPolicies = dsNewPolicies.copy() D. Dim dsWebPolicies As DataSet dsWebPolicies = dsNewPolicies.fill()
55. You have two DataTable objects, called dtPolicies and dtClients, in a DataSet called dsNewPolicies. The dtPolicies object has a column named Policy_ID that is unique to dtPolicies and a column named Client_ID that is a reference to a row in the dtClients object. The dtClients DataSet has a column named Client_ID that is unique to dtClients. You want to write the data within the dsNewPolicies to an XML document with the WriteXML method. What must you do to preserve the referential integrity and nest the dtClients DataTable within the dtPolicies DataTable when creating the XML Document? A. Set the DataRelation Nested property to True. B. Set the DataRelation UniqueKey property to True. C. Declare a foreign key constraint between the dtPolicies and dtClients. D. Declare a unique key constraint between the dtPolicies and dtClients.
56. You have created a typed DataSet called PolicyDataSet from the DataSet object and have filled the DataSet with the following code: Dim cnRWLife As SqlConnection = New SqlConnection("Data Source=localhost;Integrated Security=SSPI;" & _ "Initial Catalog=RavenwoodLife;") Dim cmdNewPolicy As SqlDataAdapter = New SqlDataAdapter("SELECT * FROM Policies", cnRWLife) cnRWLife.Open() Dim dsNewPolicy As PolicyDataSet = New PolicyDataSet() cmdNewPolicy.Fill(dsNewPolicy, "Policies") You want to output the PolicyID for each row. What code segment will accomplish this? A. Dim rowNewPolicy As PolicyDataSet.PolicyRow For Each rowNewPolicy In dsNewPolicy.Policies Console.WriteLine(rowNewPolicy.PolicyID) Next B. Dim rowNewPolicy As DataColumnCollection.PolicyRow For Each rowNewPolicy In dsNewPolicy.Policies Console.WriteLine(rowNewPolicy.PolicyID) Next C. Dim rowNewPolicy As PolicyDataSet.PolicyRow For Each rowNewPolicy In dsNewPolicy.Policies Console.WriteLine(rowNewPolicy.Column(1)) Next D. Dim rowNewPolicy As DataColumnCollection.PolicyRow For Each rowNewPolicy In dsNewPolicy.Policies Console.WriteLine(rowNewPolicy. Column(1)) Next
57. You have been asked to develop an application test plan for the Web application that you are working on. After you had done your research, you have discovered two test plan methodologies. One is a more traditional approach where testing is not done early on in the development and the other method is small development steps where testing is done frequently in an iterative process. What are the application test plan methodologies? A. Revolutionary B. Progressive C. Waterfall D. Evolutionary E. Black Box
58. You are debugging your XML Web Service and need to capture information and send it to a text file. Which two code segments will accomplish this? A. Dim AppTrace as New System.IO.FileStream("C:\AppTrace.log", IO.FileMode.OpenOrCreate) B. Dim AppTraceListener As New TextWriterTraceListener(AppTrace) C. Dim AppTrace as New System.IO.BufferStream("C:\AppTrace.log", IO.FileMode.OpenOrCreate) D. Dim AppTrace as New System.IO.LogStream("C:\AppTrace.log", IO.FileMode.OpenOrCreate) E. Dim AppTraceListener As New EventLogTraceListener(AppTrace)
59. You want to trace all the output from the XML Web Service that you created. You have enabled TraceSwitch. What TraceLevel do you need to set? A. Warning B. Info C. Verbose D. Error
60. You need to read data from an XML document within your Visual Basic.NET code. What line in your code is needed to specify a path to the XML document? A. Dim newrates As New System.Xml.XPath.XPathDocument("c:\xmldocs\newrates.xml") B. Dim newrates As New System.Xml.XPath.XPathNavigator("c:\xmldocs\newrates.xml") C. Dim newrates As New System.Xml.XPath.XPathNodeIterator("c:\xmldocs\newrates.xml") D. Dim newrates As New System.Xml.XPath.XPathReadOnly("c:\xmldocs\newrates.xml")
|